package com.github_dididipapa.mall.product.feign;

import com.github_dididipapa.common.config.FeignConfig;
import com.github_dididipapa.common.to.es.SkuEsModel;
import com.github_dididipapa.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @description: To be defined
 * @author: dididi_papa
 * @email: mitis1624087624@gmail.com
 * @date: 2025/07/03  18:15
 */
@FeignClient(name = "mall-gateway",
        url = "http://127.0.0.1:88",
        contextId = "elasticFeignService",
        configuration = FeignConfig.class
)

public interface ElasticFeignService {

    @PostMapping("api/search/save/product")
    R saveSpu(@RequestBody List<SkuEsModel> esModelList);
}
